package com.thc.blockhandler;

import com.thc.domin.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;

public final class ExceptionUtil {

    public static User exceptionHandler(Long id , BlockException e) {

         e.printStackTrace();
         return new User(-1L,"涂洪川啊,限流了就降级了","降级方法");
    }
}